package com.yunche.yunchebusiness.base.rx

import com.yunche.yunchebusiness.base.mvp.BaseScheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers

/**
 * Create by Crcker on 2018/12/20 11:03
 * Email: Crcker@163.com
 */


object SchedulerUtils {

    fun <T> ioToMain(): IoMainScheduler<T> {
        return IoMainScheduler()
    }

    class IoMainScheduler<T> : BaseScheduler<T>(Schedulers.io(), AndroidSchedulers.mainThread())
}